package com.buba.customer.service.impl;

import com.buba.customer.dao.CustomerLoginMapper;
import com.buba.customer.pojo.CustomerLogin;
import com.buba.customer.service.CustomerLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户登录的业务实现类
 */
@Service
public class CustomerLoginServiceImpl implements CustomerLoginService {
    private CustomerLoginMapper customerLoginMapper;
    @Override
    public CustomerLogin login(CustomerLogin login) {
        return customerLoginMapper.login(login);
    }

    @Override
    public Integer addCustomerLogin(CustomerLogin login) {
        return customerLoginMapper.addCustomerLogin(login);
    }

    @Override
    public Integer selCustomerLoginByName(CustomerLogin login) {
        return customerLoginMapper.selCustomerLoginByName(login);
    }

    @Override
    public List<CustomerLogin> selCustomerLogin(Map<String,Object> map) {
        return customerLoginMapper.selCustomerLogin(map);
    }

    @Override
    public Integer delCustomerLogin(String[] split) {
        return customerLoginMapper.delCustomerLogin(split);
    }

    @Override
    public Long selCount(Map<String, Object> map) {
        return customerLoginMapper.selCount(map);
    }


    @Override
    public Integer updCustomerLogin(CustomerLogin customerLogin) {
        return customerLoginMapper.updCustomerLogin(customerLogin);
    }


    public CustomerLoginMapper getCustomerLoginMapper() {
        return customerLoginMapper;
    }
    @Autowired
    public void setCustomerLoginMapper(CustomerLoginMapper customerLoginMapper) {
        this.customerLoginMapper = customerLoginMapper;
    }
}
